package com.ethink.warehouse.common.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.util.Date;
import com.ethink.framework.common.db.SuperEntity;

/**
 * 仓库出库单 数据库实体
 *
 * @author default
 * @date 2022-12-16
 */
@Data
@TableName("t_stock_out_order")
public class StockOutOrder extends SuperEntity {

    public static final String ORDER_NO ="order_no";

    public static final String OUT_ORDER_NO ="out_order_no";

    public static final String OWNER_CODE ="owner_code";

    public static final String OUT_STOCK_TYPE ="out_stock_type";

    public static final String OUT_STOCK_STATUS ="out_stock_status";

    public static final String SCHEDULE_TIME ="schedule_time";

    public static final String ORDER_CONFIRM_TIME ="order_confirm_time";


    /** 原单据号 */
    private String orderNo;

    /** 外部仓储出库单号 */
    private String outOrderNo;

    /** 货主编码 */
    private String ownerCode;

    /** 枚举 入库类型: 1-普通出库(t1)|2-调拨出库(t2)|3-B2B出库(t3)|4-其他出库(t4)|5-采购退货出库(t5)|6-虚拟出库单(t6)|7-唯品出库(t7) */
    private Integer outStockType;

    /** 枚举 入库状态: 1-未开始处理(new)|2-仓库接单(accept)|3-部分发货完成(part_in)|4-发货完成(full_in)|5-异常(exception)|6-取消(cancel)|7-关闭(close)|8-拒单(reject)|8-取消失败(cancel_fail) */
    private Integer outStockStatus;

    /** 要求出库时间 */
    private Date scheduleTime;

    /** 完成时间 */
    private Date orderConfirmTime;

}
